package com.hotel.daos;

import com.hotel.entitys.Guest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GuestMapper {
    public List<Guest> selectAllGuests(@Param("keyWord") String keyWord);
    public Guest  selectUserByPhoneAndPwd(Integer guest_id);
    public int saveGuest(Guest guest);
    int deleteGuest(Integer guest_id);
    int updateGuest (Guest guest);
    public int deleteAll(Object obj[]);
    public Guest selGuestByTel(@Param("guest_telephone") String guest_telephone);
    public int updById(@Param("gid") Integer gid);
}
